package com.tzy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mai.entity.Product;
import com.tzy.dao.ProductInfoMapper;
import com.tzy.entity.ProductInfo;
@Service
@Transactional
public class ProductInfoServiceImpl implements ProductInfoService{
	@Autowired
	private ProductInfoMapper pi;

	@Override
	public List<ProductInfoMapper> selectProductInfoByLikeAndCategory_type(Integer category_type) {
		
		return this.pi.selectProductInfoByLikeAndCategory_type(category_type);
	}

	@Override
	public List<Product> findAllCai(String product_category) {	
		return pi.findAllCai(product_category);
	}

}
